how to customise a template